<!-- 付款合同 -->
<template>
  <div class="content">
    <el-card class="box-card">
      <div slot="header">
        <span style="color: rgb(14, 175, 14);">付款合同</span>
      </div>
      <div class="box">
        <div class="item" v-for="(itm, idx) in dataList" :key="idx">
          <h4>{{ itm.projectName }}</h4>
          <p>合同名称：{{ itm.contractName }}</p>
          <p>合同编号：{{ itm.contractNo }}</p>
          <p>合同金额：{{ itm.contractPrice }}</p>
          <p>待付金额：{{ itm.paymentprice }}</p>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      chart: undefined,
      dataList: [
        {
          projectName: '风光一体化防沙治沙',
          contractName: '风光一体化防沙治沙采购合同',
          contractNo: 'CGH202201001',
          contractPrice: '39,000.00',
          paymentprice: '4,000.00'
        },{
          projectName: '三北六期',
          contractName: '三北六期采购合同',
          contractNo: 'CGH202201001',     
          contractPrice: '39,000.00',
          paymentprice: '4,000.00'
        },{
          projectName: '蚂蚁森林',
          contractName: '蚂蚁森林采购合同',
          contractNo: 'CGH202201001',
          contractPrice: '39,000.00',
          paymentprice: '4,000.00'
        },{
          projectName: '蓝旗机器人造林',
          contractName: '蓝旗机器人造林采购合同',
          contractNo: 'CGH202201001',
          contractPrice: '39,000.00',
          paymentprice: '4,000.00'
        }
      ]
    }
  },
  methods: {
    
  }
}
</script>

<style lang="scss" scoped>
.box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  height: 350px;
  overflow-y: auto;
  .item {
    width: 320px;
    height: 200px;
    border: 1px solid rgb(40, 219, 40);
    border-radius: 15px;
    background-color: rgb(225, 248, 225);
    h4 {
      margin-bottom: 20px;
      margin-left: 40px;
      font-size: 20px;
      font-weight: 500;
      position: relative;
      &:before{
        content: ' ';
        position: absolute;
        left: -25px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        border-radius: 10px;
        height: 16px;
        background-color:green;
      }
    }
    p {
      margin-top: 0;
      margin-bottom: 8px;
      margin-left: 40px;
      font-size: 14px;
    }
  }
}
</style>